<?php
declare(strict_types=1);

namespace App\Models;

class Banner extends BaseModel
{
    protected $table = "banner";

    protected $fillable = [
        "uid",
        "first_title",
        "second_title",
        "url",
        "path",
        "is_show",
        "orders",
        "navigate",
    ];

    public function getFirstTitleAttribute($key): string
    {
        return !empty($key) ? $key : "";
    }

    public function getSecondTitleAttribute($key): string
    {
        return !empty($key) ? $key : "";
    }
}
